package com.woniu.daiquhua.service.impl;


import com.woniu.daiquhua.entity.User;
import com.woniu.daiquhua.mapper.UserMapper;
import com.woniu.daiquhua.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;
    @Override
    public int insert(User user) {
        return userMapper.insert(user);
    }

    @Override
    public User login(String uAccount) {
        return userMapper.login(uAccount);
    }

    @Override
    public int updatestatus(User user) {
        return userMapper.updatestatus(user);
    }

    @Override
    public User findMobile(String userMobile) {
        return userMapper.selectMobile(userMobile);
    }
}
